import {useList  } from "./useList";
function App() {
  const { list } = useList()


  return(
    <div>
    {/* <h1>列表</h1> */}
    <div>
    {list.map(item=>{
      return <div key={item.id}>
        <div><img src={item.img} alt="" /></div>
        <div>{item.title}</div>
        <div>{item.source}</div>
        <div>{item.time}</div>
      </div>
    })}
   </div>
  </div>
  )
}
export default App